const xhr = new XMLHttpRequest();
xhr.open('GET', 'http:///',true);
xhr.setRequestHeader('Content-Type','application/json');
xhr.onreadystatechange = function() {
    if (xhr.readyState === 4 && xhr.status === 200)
    {
        console.log(xhr.responseText);

    }
};
xhr.send();